package com.bw.shopping.adapter;

import com.bw.shopping.R;
import com.bw.shopping.entity.GetAddressEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/29 0029 下午 7:35
 *
 */
class AddressAdapter extends BaseQuickAdapter<GetAddressEntity.DataBean, BaseViewHolder> {

    public AddressAdapter() {
        super(R.layout.item_address_item);
        addChildClickViewIds(R.id.mSetDefaultTv,R.id.mDeleteTv,R.id.mEditTv);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, GetAddressEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.mShipNameTv, dataBean.getShip_user_name());
        baseViewHolder.setText(R.id.mShipAddressTv, dataBean.getShip_address());

    }
}
